﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using ExtenDev.Web.Management;

namespace ExtenDev.Web.Extensions
{
    public class ResourceHandler : IHttpHandler
    {
        public bool IsReusable
        {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            string resourceHash = context.Request.QueryString["res"];
            if (!string.IsNullOrEmpty(resourceHash) && resourceHash.Length == 32)
            {
                //string response = ResourceManager
            }
            throw new HttpException(404, "Resource not found");
        }
    }
}
